
package com.purvar.boot.api.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.purvar.boot.comm.api.vo.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@TableName("sys_autocode_detail")
@ApiModel(
        value = "SysAutocodeDetail",
        description = "实体对象"
)
public class SysAutocodeDetail extends BaseEntity {
    private static final long serialVersionUID = 1L;
    @ApiModelProperty("")
    private String id;
    @ApiModelProperty("主表主键")
    private String parentId;
    @ApiModelProperty("数据库名称")
    private String databaseName;
    @ApiModelProperty("数据库描述")
    private String databaseDescription;
    @ApiModelProperty("物理类型")
    private String databaseType;
    @ApiModelProperty("数据字典")
    private String javaType;
    @ApiModelProperty("java名称")
    private String javaName;
    @ApiModelProperty("0非主键1主键")
    private String mainkey;
    @ApiModelProperty("列表需要展示0不需要1需要")
    private String list;
    @ApiModelProperty("0编辑不显示1编辑显示")
    private String edit;
    @ApiModelProperty("查询")
    private String search;
    @ApiModelProperty("匹配模式")
    private String searchtype;
    @ApiModelProperty("控件类型")
    private String controlType;
    @ApiModelProperty("数据来源类型")
    private String controlDatasourseType;
    @ApiModelProperty("控件数据源值")
    private String controlDatasourse;
    @ApiModelProperty("排序")
    private String orderIndex;
    @ApiModelProperty("校验规则")
    private String rules;
    @ApiModelProperty("数据库最大长度")
    private Integer maximumLength;
    @ApiModelProperty("排序字段")
    private String orders;
    @ApiModelProperty("主表id")
    private String mainId;
    @ApiModelProperty("必填，0非必填，1必填")
    private String requires;
    @TableField(exist = false)
    private int orderIndexs;

    public int getOrderIndexs() {
        if (this.orderIndex != null)
            return Integer.parseInt(this.orderIndex);
        return 0;
    }

    public SysAutocodeDetail() {
    }

    public String getId() {
        return this.id;
    }

    public String getParentId() {
        return this.parentId;
    }

    public String getDatabaseName() {
        return this.databaseName;
    }

    public String getDatabaseDescription() {
        return this.databaseDescription;
    }

    public String getDatabaseType() {
        return this.databaseType;
    }

    public String getJavaType() {
        return this.javaType;
    }

    public String getJavaName() {
        return this.javaName;
    }

    public String getMainkey() {
        return this.mainkey;
    }

    public String getList() {
        return this.list;
    }

    public String getEdit() {
        return this.edit;
    }

    public String getSearch() {
        return this.search;
    }

    public String getSearchtype() {
        return this.searchtype;
    }

    public String getControlType() {
        return this.controlType;
    }

    public String getControlDatasourseType() {
        return this.controlDatasourseType;
    }

    public String getControlDatasourse() {
        return this.controlDatasourse;
    }

    public String getOrderIndex() {
        return this.orderIndex;
    }

    public String getRules() {
        return this.rules;
    }

    public Integer getMaximumLength() {
        return this.maximumLength;
    }

    public String getOrders() {
        return this.orders;
    }

    public String getMainId() {
        return this.mainId;
    }

    public String getRequires() {
        return this.requires;
    }

    public SysAutocodeDetail setId(final String id) {
        this.id = id;
        return this;
    }

    public SysAutocodeDetail setParentId(final String parentId) {
        this.parentId = parentId;
        return this;
    }

    public SysAutocodeDetail setDatabaseName(final String databaseName) {
        this.databaseName = databaseName;
        return this;
    }

    public SysAutocodeDetail setDatabaseDescription(final String databaseDescription) {
        this.databaseDescription = databaseDescription;
        return this;
    }

    public SysAutocodeDetail setDatabaseType(final String databaseType) {
        this.databaseType = databaseType;
        return this;
    }

    public SysAutocodeDetail setJavaType(final String javaType) {
        this.javaType = javaType;
        return this;
    }

    public SysAutocodeDetail setJavaName(final String javaName) {
        this.javaName = javaName;
        return this;
    }

    public SysAutocodeDetail setMainkey(final String mainkey) {
        this.mainkey = mainkey;
        return this;
    }

    public SysAutocodeDetail setList(final String list) {
        this.list = list;
        return this;
    }

    public SysAutocodeDetail setEdit(final String edit) {
        this.edit = edit;
        return this;
    }

    public SysAutocodeDetail setSearch(final String search) {
        this.search = search;
        return this;
    }

    public SysAutocodeDetail setSearchtype(final String searchtype) {
        this.searchtype = searchtype;
        return this;
    }

    public SysAutocodeDetail setControlType(final String controlType) {
        this.controlType = controlType;
        return this;
    }

    public SysAutocodeDetail setControlDatasourseType(final String controlDatasourseType) {
        this.controlDatasourseType = controlDatasourseType;
        return this;
    }

    public SysAutocodeDetail setControlDatasourse(final String controlDatasourse) {
        this.controlDatasourse = controlDatasourse;
        return this;
    }

    public SysAutocodeDetail setOrderIndex(final String orderIndex) {
        this.orderIndex = orderIndex;
        return this;
    }

    public SysAutocodeDetail setRules(final String rules) {
        this.rules = rules;
        return this;
    }

    public SysAutocodeDetail setMaximumLength(final Integer maximumLength) {
        this.maximumLength = maximumLength;
        return this;
    }

    public SysAutocodeDetail setOrders(final String orders) {
        this.orders = orders;
        return this;
    }

    public SysAutocodeDetail setMainId(final String mainId) {
        this.mainId = mainId;
        return this;
    }

    public SysAutocodeDetail setRequires(final String requires) {
        this.requires = requires;
        return this;
    }

    public String toString() {
        return "SysAutocodeDetail(id=" + this.getId() + ", parentId=" + this.getParentId() + ", databaseName=" + this.getDatabaseName() + ", databaseDescription=" + this.getDatabaseDescription() + ", databaseType=" + this.getDatabaseType() + ", javaType=" + this.getJavaType() + ", javaName=" + this.getJavaName() + ", mainkey=" + this.getMainkey() + ", list=" + this.getList() + ", edit=" + this.getEdit() + ", search=" + this.getSearch() + ", searchtype=" + this.getSearchtype() + ", controlType=" + this.getControlType() + ", controlDatasourseType=" + this.getControlDatasourseType() + ", controlDatasourse=" + this.getControlDatasourse() + ", orderIndex=" + this.getOrderIndex() + ", rules=" + this.getRules() + ", maximumLength=" + this.getMaximumLength() + ", orders=" + this.getOrders() + ", mainId=" + this.getMainId() + ", requires=" + this.getRequires() + ")";
    }

    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof SysAutocodeDetail)) {
            return false;
        } else {
            SysAutocodeDetail other = (SysAutocodeDetail) o;
            if (!other.canEqual(this)) {
                return false;
            } else if (!super.equals(o)) {
                return false;
            } else {
                label265:
                {
                    Object this$id = this.getId();
                    Object other$id = other.getId();
                    if (this$id == null) {
                        if (other$id == null) {
                            break label265;
                        }
                    } else if (this$id.equals(other$id)) {
                        break label265;
                    }

                    return false;
                }

                Object this$parentId = this.getParentId();
                Object other$parentId = other.getParentId();
                if (this$parentId == null) {
                    if (other$parentId != null) {
                        return false;
                    }
                } else if (!this$parentId.equals(other$parentId)) {
                    return false;
                }

                label251:
                {
                    Object this$databaseName = this.getDatabaseName();
                    Object other$databaseName = other.getDatabaseName();
                    if (this$databaseName == null) {
                        if (other$databaseName == null) {
                            break label251;
                        }
                    } else if (this$databaseName.equals(other$databaseName)) {
                        break label251;
                    }

                    return false;
                }

                Object this$databaseDescription = this.getDatabaseDescription();
                Object other$databaseDescription = other.getDatabaseDescription();
                if (this$databaseDescription == null) {
                    if (other$databaseDescription != null) {
                        return false;
                    }
                } else if (!this$databaseDescription.equals(other$databaseDescription)) {
                    return false;
                }

                Object this$databaseType = this.getDatabaseType();
                Object other$databaseType = other.getDatabaseType();
                if (this$databaseType == null) {
                    if (other$databaseType != null) {
                        return false;
                    }
                } else if (!this$databaseType.equals(other$databaseType)) {
                    return false;
                }

                label230:
                {
                    Object this$javaType = this.getJavaType();
                    Object other$javaType = other.getJavaType();
                    if (this$javaType == null) {
                        if (other$javaType == null) {
                            break label230;
                        }
                    } else if (this$javaType.equals(other$javaType)) {
                        break label230;
                    }

                    return false;
                }

                label223:
                {
                    Object this$javaName = this.getJavaName();
                    Object other$javaName = other.getJavaName();
                    if (this$javaName == null) {
                        if (other$javaName == null) {
                            break label223;
                        }
                    } else if (this$javaName.equals(other$javaName)) {
                        break label223;
                    }

                    return false;
                }

                Object this$mainkey = this.getMainkey();
                Object other$mainkey = other.getMainkey();
                if (this$mainkey == null) {
                    if (other$mainkey != null) {
                        return false;
                    }
                } else if (!this$mainkey.equals(other$mainkey)) {
                    return false;
                }

                Object this$list = this.getList();
                Object other$list = other.getList();
                if (this$list == null) {
                    if (other$list != null) {
                        return false;
                    }
                } else if (!this$list.equals(other$list)) {
                    return false;
                }

                label202:
                {
                    Object this$edit = this.getEdit();
                    Object other$edit = other.getEdit();
                    if (this$edit == null) {
                        if (other$edit == null) {
                            break label202;
                        }
                    } else if (this$edit.equals(other$edit)) {
                        break label202;
                    }

                    return false;
                }

                label195:
                {
                    Object this$search = this.getSearch();
                    Object other$search = other.getSearch();
                    if (this$search == null) {
                        if (other$search == null) {
                            break label195;
                        }
                    } else if (this$search.equals(other$search)) {
                        break label195;
                    }

                    return false;
                }

                Object this$searchtype = this.getSearchtype();
                Object other$searchtype = other.getSearchtype();
                if (this$searchtype == null) {
                    if (other$searchtype != null) {
                        return false;
                    }
                } else if (!this$searchtype.equals(other$searchtype)) {
                    return false;
                }

                Object this$controlType = this.getControlType();
                Object other$controlType = other.getControlType();
                if (this$controlType == null) {
                    if (other$controlType != null) {
                        return false;
                    }
                } else if (!this$controlType.equals(other$controlType)) {
                    return false;
                }

                label174:
                {
                    Object this$controlDatasourseType = this.getControlDatasourseType();
                    Object other$controlDatasourseType = other.getControlDatasourseType();
                    if (this$controlDatasourseType == null) {
                        if (other$controlDatasourseType == null) {
                            break label174;
                        }
                    } else if (this$controlDatasourseType.equals(other$controlDatasourseType)) {
                        break label174;
                    }

                    return false;
                }

                label167:
                {
                    Object this$controlDatasourse = this.getControlDatasourse();
                    Object other$controlDatasourse = other.getControlDatasourse();
                    if (this$controlDatasourse == null) {
                        if (other$controlDatasourse == null) {
                            break label167;
                        }
                    } else if (this$controlDatasourse.equals(other$controlDatasourse)) {
                        break label167;
                    }

                    return false;
                }

                Object this$orderIndex = this.getOrderIndex();
                Object other$orderIndex = other.getOrderIndex();
                if (this$orderIndex == null) {
                    if (other$orderIndex != null) {
                        return false;
                    }
                } else if (!this$orderIndex.equals(other$orderIndex)) {
                    return false;
                }

                label153:
                {
                    Object this$rules = this.getRules();
                    Object other$rules = other.getRules();
                    if (this$rules == null) {
                        if (other$rules == null) {
                            break label153;
                        }
                    } else if (this$rules.equals(other$rules)) {
                        break label153;
                    }

                    return false;
                }

                Object this$maximumLength = this.getMaximumLength();
                Object other$maximumLength = other.getMaximumLength();
                if (this$maximumLength == null) {
                    if (other$maximumLength != null) {
                        return false;
                    }
                } else if (!this$maximumLength.equals(other$maximumLength)) {
                    return false;
                }

                label139:
                {
                    Object this$orders = this.getOrders();
                    Object other$orders = other.getOrders();
                    if (this$orders == null) {
                        if (other$orders == null) {
                            break label139;
                        }
                    } else if (this$orders.equals(other$orders)) {
                        break label139;
                    }

                    return false;
                }

                Object this$mainId = this.getMainId();
                Object other$mainId = other.getMainId();
                if (this$mainId == null) {
                    if (other$mainId != null) {
                        return false;
                    }
                } else if (!this$mainId.equals(other$mainId)) {
                    return false;
                }

                Object this$requires = this.getRequires();
                Object other$requires = other.getRequires();
                if (this$requires == null) {
                    if (other$requires != null) {
                        return false;
                    }
                } else if (!this$requires.equals(other$requires)) {
                    return false;
                }

                return true;
            }
        }
    }

    protected boolean canEqual(final Object other) {
        return other instanceof SysAutocodeDetail;
    }


}
